/*
 * @Description: modal框 * @Autor: GuluGuluu
 * @Date: 2022-08-12 00:55:47
 * @LastEditors: GuluGuluu
 * @LastEditTime: 2023-06-26 17:01:32
 */
import { Modal } from "antd";

const MyModal = (props) => {
  const { content, handleOk, title, visible, loading, okType, handleCancel } =
    props;

  return (
    <Modal
      title={title}
      open={visible}
      onOk={handleOk}
      confirmLoading={loading}
      onCancel={handleCancel}
      okType={okType}
      okText="确定"
      cancelText="取消"
    >
      <p>{content}</p>
    </Modal>
  );
};

export default MyModal;
